const { FILTER_SHOW_ALL, SET_VISIBILITY_FILTER } = require("../actions");

const visibilityFilter = (state = FILTER_SHOW_ALL, action) => {
    switch (action.type) {
        case SET_VISIBILITY_FILTER:
            return action.filter;
        default:
            return state;
    }
}

export default visibilityFilter;